# Copyright 2009 http://www.yuntien.com
# Licensed under the Apache License, Version 2.0

from ytblog.controller.common import *
      
class BlogDeleteController(BlogController):
  @check_blog_id
  @authorize(Blog, authorization.OPERATION_DELETE)
  def post(self, id):
    blog = Blog.get_by_str_id(id)
    blog.delete()
